package com.example.nutritionmanager.api

import com.example.nutritionmanager.bodys.requestBodys.Record
import com.example.nutritionmanager.bodys.responseBodys.DailyNutritionResponse
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface RecordService {

    @POST("record/add")
    suspend fun addNutritionRecord(@Body record: Record): Response<Boolean>

    @GET("meal/dayMeals")
    suspend fun getDayMealsRecord(@Query("date") date: String): Response<DailyNutritionResponse>
}